package oopday02;

public class Test {
    public static void main(String[] args) {
        Fish[] aa= new Fish[3];
        aa[0]=new Fish("aa",12,"blue");
        aa[1]=new Fish("BB",13,"while");
        aa[2]=new Fish("cc",14,"black");
        for (int i = 0; i < aa.length; i++) {
            System.out.println(aa[i].name);
            aa[i].eat();
        }
        Dog XX = new Dog("XX",12,"yellow");
        Chick yy =new Chick("yy",12,"red");
        aa[0].eat();
        aa[0].Drink();
        XX.eat();
        XX.lookHome();
        XX.Drink();
        yy.eat();
        yy.Drink();
        yy.deposit();
    }
}
